
package com.bcurtu.xfire;

import javax.jws.WebService;

import com.bcurtu.service.TempAliasService;

@WebService(
        serviceName = "AccountService",
        endpointInterface = "com.bcurtu.xfire.AccountValidator"
)
public class AccountValidatorImpl  implements AccountValidator{

	private TempAliasService service;

	public TempAliasService getService() {
		return service;
	}

	public void setService(TempAliasService service) {
		this.service = service;
	}

	public boolean blockAccount(String alias) {
		return service.blockAccountByAlias(alias);
	}

	public boolean forceDeleteAccount(String alias) {
		return service.deleteAccountByAlias(alias);
	}

	public boolean isValidAlias(String alias) {
		return service.isValidAlias(alias);
	}
	
	
	
}
